I am attempting to import RTF files into a DOORS (v8.3) module (v8.3) using a DXL script, but the manual line feeds I want within an object are not being imported correctly. When I import using the File->Import->Rich Text File menu selection, it works properly. I have 405 files to import into a module, so doing it manually is not really an option (and the files are split out that way for a reason, so combining them is not a solution, either). I have posted my DXL script below: |
Re: DOORS ImportRTF function
The RTF import script is not encrypted. You can find it under dxl/standard/import/rtfim.dxl.
// redeclare show to just do a realize!
DB diag = null
void show(DB x) {
realize x
diag = x
}
string files[] = {"C:\\File1.txt", "C:\\File2.txt"}
for i in 0:1 do {
#include <standard/import/rtfim.dxl>
// we can do something with the dialog now!
// Set the filename to what we want!
set (impFileName, files[i])
impFileImportCB(diag)
hide diag
}
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: DOORS ImportRTF function Is there another, preexisting way to mass import rtf files? I'd be surprised if bghegstr and myself were the first ones to try. |
Re: DOORS ImportRTF function jpain - Thu Aug 12 13:56:28 EDT 2010 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: DOORS ImportRTF function
Mathias Mamsch wrote: The above script will import the files into the current Module. You get the "null module" error, because you probably did not run the script from a module. To make it import into several modules, you will need to create a module in the loop, open it, and then call the import script. Regards, Mathias <hr> Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS Now I got it, Thanks for your explanation! This is what I'm looking for. |
Re: DOORS ImportRTF function Giancarlo.Sellers - Fri Nov 26 05:42:02 EST 2010
Mathias Mamsch wrote: The above script will import the files into the current Module. You get the "null module" error, because you probably did not run the script from a module. To make it import into several modules, you will need to create a module in the loop, open it, and then call the import script. Regards, Mathias <hr> Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS Now I got it, Thanks for your explanation! This is what I'm looking for. http://www.smartdxl.com/downloads/dxltools16.html |
Re: DOORS ImportRTF function SystemAdmin - Fri Nov 26 07:37:50 EST 2010 I ran the script in the link it has great GUI to select different modules. On the IMportRTF Function part: I made changes and ran the script it worked brilliantly to run in the particular module. It may help!
|